﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PaginaMaestra.Master" AutoEventWireup="true" CodeBehind="Cartelera.aspx.cs" Inherits="ProyectoCine.Cartelera" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style14
        {
            width: 142px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" runat="server">
    <asp:Panel ID="Panel1" runat="server" ForeColor="Red" 
        GroupingText="Cartelera" Height="518px" Font-Bold="True">
        <table class="style1" style="height: 140px">
            <tr>
                <td class="style14">
                    <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="Nombre" 
                        Font-Bold="True"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtNombre" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style14">
                    <asp:Label ID="Label5" runat="server" ForeColor="Red" Text="Genero" 
                        Font-Bold="True"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlGenero" runat="server" AutoPostBack="True">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style14">
                    <asp:Label ID="Label7" runat="server" Text="Año de Estreño"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtAñoEstreno" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style14">
                    <asp:Button ID="btnBuscar" runat="server" Text="Buscar" 
                        onclick="btnBuscar_Click" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        <asp:GridView ID="gvPeliculas" runat="server" AutoGenerateColumns="False" 
            Height="16px" onselectedindexchanged="gvPeliculas_SelectedIndexChanged" 
            Width="650px" AllowPaging="True" AllowSorting="True" 
            onpageindexchanging="gvPeliculas_PageIndexChanging" 
            onsorting="gvPeliculas_Sorting" BackColor="#DEBA84" BorderColor="#DEBA84" 
            BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2">
            <Columns>
                <asp:CommandField ShowSelectButton="True" SelectText="Ver Mas" />
                <asp:BoundField DataField="nombre" HeaderText="Nombre" 
                    SortExpression="nombre" />
                <asp:BoundField DataField="nombre1" HeaderText="Genero" 
                    SortExpression="nombre1" />
                <asp:BoundField DataField="paisOrigen" HeaderText="Pais de Origen" 
                    SortExpression="paisOrigen" />
                <asp:BoundField DataField="añoEstreno" HeaderText="Año de Estreno" 
                    SortExpression="añoEstreno" />
            </Columns>
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FFF1D4" />
            <SortedAscendingHeaderStyle BackColor="#B95C30" />
            <SortedDescendingCellStyle BackColor="#F1E5CE" />
            <SortedDescendingHeaderStyle BackColor="#93451F" />
        </asp:GridView>
    </asp:Panel>
</asp:Content>
